UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

Rancher RKE2 must terminate all network connections associated with a communications session at the end of the session, or as follows: for in-band management sessions (privileged sessions), the session must be terminated after five minutes of inactivity.


Overview

Finding ID Version Rule ID IA Controls Severity
V-254568 CNTR-R2-000890 SV-254568r954892_rule Medium
Description
Terminating an idle session within a short time period reduces the window of opportunity for unauthorized personnel to take control of a management session enabled on the console or console port that has been left unattended. In addition, quickly terminating an idle session will also free up resources committed by the managed network element. Terminating network connections associated with communications sessions includes, for example, de-allocating associated TCP/IP address/port pairs at the operating system level, or de-allocating networking assignments at the application level if multiple application sessions are using a single, operating-system-level network connection. This does not mean that the application terminates all sessions or network access; it only ends the inactive session and releases the resources associated with that session.
STIG Date
Rancher Government Solutions RKE2 Security Technical Implementation Guide 2024-02-25

Details

Check Text ( C-58052r894462_chk )
Ensure streaming-connection-idle-timeout argument is set correctly.

Run this command on each node:
/bin/ps -ef | grep kubelet | grep -v grep

If --streaming-connection-idle-timeout is set to < "5m" or the parameter is not configured, this is a finding.
Fix Text (F-58001r894463_fix)
Edit the RKE2 Server configuration file on all RKE2 Server hosts, located at /etc/rancher/rke2/config.yaml, to contain the following:

kubelet-arg:
- streaming-connection-idle-timeout=5m

Once configuration file is updated, restart the RKE2 Agent. Run the command:
systemctl restart rke2-agent